 /**
 * 子模块路由
 * DHpai
 */

var router = function($urlRouterProvider, $stateProvider){


 	$stateProvider


    //货源订单列表
    .state('app.hy_order_list', {
        url: "/danger/hy_order_list",
        views: {
            'main@' : {
                template : require('./views/hy_order_list.html'),
                controller : 'hy_order_list',
            }
        },
        resolve:{
        }
    })

    //车企订单列表
    .state('app.cq_order_list', {
        url: "/danger/cq_order_list",
        views: {
            'main@' : {
                template : require('./views/cq_order_list.html'),
                controller : 'cq_order_list',
            }
        },
        resolve:{
        }
    })

       //监管部门订单列表
    .state('app.jg_order_list', {
        url: "/danger/jg_order_list",
        views: {
            'main@' : {
                template : require('./views/jg_order_list.html'),
                controller : 'jg_order_list',
            }
        },
        resolve:{
        }
    })

    //平台订单列表
    .state('app.pf_order_list', {
        url: "/danger/pf_order_list",
        views: {
            'main@' : {
                template : require('./views/pf_order_list.html'),
                controller : 'pf_order_list',
            }
        },
        resolve:{
        }
    })

    //货源企业列表
    .state('app.hy_company_list', {
        url: "/danger/hy_company_list",
        views: {
            'main@' : {
                template : require('./views/hy_company_list.html'),
                controller : 'hy_company_list',
            }
        },
        resolve:{
        }
    })

      //车辆企业列表
    .state('app.cl_company_list', {
        url: "/danger/cl_company_list",
        views: {
            'main@' : {
                template : require('./views/cl_company_list.html'),
                controller : 'cl_company_list',
            }
        },
        resolve:{
        }
    })

        //车辆企业详情
    .state('app.enterprise_info', {
        url: "/danger/enterprise_info",
        views: {
            'main@' : {
                template : require('./views/enterprise_info.html'),
                controller : 'enterprise_info',
            }
        },
        resolve:{
        }
    })

        //筛选车辆列表
    .state('app.choose_car_list', {
        url: "/danger/choose_car_list",
        views: {
            'main@' : {
                template : require('./views/choose_car_list.html'),
                controller : 'choose_car_list',
            }
        },
        resolve:{
        }
    })




          //      我要用车
    .state('app.place_order', {
        url: "/danger/place_order",
        views: {
            'main@' : {
                template : require('./views/place_order.html'),
                controller : 'place_order',
            }
        },
        resolve:{
        }
    })

              //      订单详情
    .state('app.order_info', {
        url: "/danger/order_info",
        views: {
            'main@' : {
                template : require('./views/order_info.html'),
                controller : 'order_info',
            }
        },
        resolve:{
        }
    })

    // 财务审核列表
    .state('app.financial_audit_list', {
        url: "/danger/financial_audit_list",
        views: {
            'main@' : {
                template : require('./views/financial_audit_list.html'),
                controller : 'financial_audit_list',
            }
        },
        resolve:{
        }
    })

        // 车企车辆列表
    .state('app.cq_car_list', {
        url: "/danger/cq_car_list",
        views: {
            'main@' : {
                template : require('./views/cq_car_list.html'),
                controller : 'cq_car_list',
            }
        },
        resolve:{
        }
    })

           // 车企驾驶员列表
    .state('app.cq_driver_list', {
        url: "/danger/cq_driver_list",
        views: {
            'main@' : {
                template : require('./views/cq_driver_list.html'),
                controller : 'cq_driver_list',
            }
        },
        resolve:{
        }
    })

          // 车辆列表
    .state('app.car_list', {
        url: "/danger/car_list",
        views: {
            'main@' : {
                template : require('./views/car_list.html'),
                controller : 'car_list',
            }
        },
        resolve:{
        }
    })

              // 车辆详情列表
    .state('app.car_info_list', {
        url: "/danger/car_info_list/'enterprise_code",
        views: {
            'main@' : {
                template : require('./views/car_info_list.html'),
                controller : 'car_info_list',
            }
        },
        resolve:{
        }
    })

    // 车辆详情
    .state('app.carinfo', {
        url: "/danger/carinfo/:car_code",
        views: {
            'main@' : {
                template : require('./views/carinfo.html'),
                controller : 'carinfo',
            }
        },
        resolve:{
        }
    })

    //子账号管理
    .state('app.user_manage', {
        url: "/danger/usermanage",
        views: {
            'main@' : {
                template : require('./views/user_manage.html'),
                controller : 'user_manage',
            }
        },
        resolve:{
            transData : function(utilservice){
                return utilservice.transData;
            }
        }
    })

};

module.exports = router;